package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("employee")
public class Employee extends Model<Employee> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 创建时间
     */
    private LocalDateTime cjsj;

    /**
     * 所属企业
     */
    private String companyId;

    /**
     * 用户ID 关联主键
     */
    private String userId;

    /**
     * 员工工号
     */
    private String yggh;

    /**
     * 如果和user表不一样就填写，一样就为空
     */
    private String ygxm;

    /**
     * 规则同员工姓名，有就用此字段，没有就用用户表的邮箱地址
     */
    private String yxdz;

    /**
     * 修改时间
     */
    private LocalDateTime xgsj;

    /**
     * 0.禁用  1.正常  2. 删除
     */
    private Integer zt;

    /**
     * 上次登录时间
     */
    private LocalDateTime lastLogin;

    /**
     * 所属系统
     */
    private String systemId;

    /**
     * 上次登录时间
     */
    private LocalDateTime preLogin;

    /**
     * 手写签名key（lims 系统中需要）
     */
    private String sxqmkey;

    /**
     * 手写签名状态（0：禁用  1：启用   lims 系统中需要）
     */
    private Integer sxqmzt;


    public static final String ID = "id";

    public static final String CJSJ = "cjsj";

    public static final String COMPANY_ID = "company_id";

    public static final String USER_ID = "user_id";

    public static final String YGGH = "yggh";

    public static final String YGXM = "ygxm";

    public static final String YXDZ = "yxdz";

    public static final String XGSJ = "xgsj";

    public static final String ZT = "zt";

    public static final String LAST_LOGIN = "last_login";

    public static final String SYSTEM_ID = "system_id";

    public static final String PRE_LOGIN = "pre_login";

    public static final String SXQMKEY = "sxqmkey";

    public static final String SXQMZT = "sxqmzt";


}
